From 9bfcc8b0cdca1167ee327460b1a93bb9dd8b020e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 30 Apr 2002 22:48:20 +0000 Subject: [PATCH] [emacs]: Include stdio.h. (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional. --- src/s/gnu.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/s/gnu.h b/src/s/gnu.h index 6a38dc6f588..bc2c1fcfb3a 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h @@ -78,3 +78,12 @@ Boston, MA 02111-1307, USA. */ #endif #define NARROWPROTO 1 + +#ifdef emacs +#include /* Get the definition of _IO_STDIO_H. */ +#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) +/* new C libio names */ +#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ + ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) +#endif /* !_IO_STDIO_H */ +#endif /* emacs */ -- 2.30.2